package com.sx.zongzhi.bean;

import java.io.Serializable;
import java.util.List;

/**
 * Created by XZY on 2017/11/27.
 * 服务记录
 */

public class ServiceRecordBean {


    /**
     * page : 1
     * records : 2
     * rows : []
     * total : 1
     */

    private int page;
    private int records;
    private int total;
    private PermissionBean permission;
    private List<RowsBean> rows;

    public PermissionBean getPermission() {
        return permission;
    }

    public int getPage() {
        return page;
    }

    public void setPage(int page) {
        this.page = page;
    }

    public int getRecords() {
        return records;
    }

    public void setRecords(int records) {
        this.records = records;
    }

    public int getTotal() {
        return total;
    }

    public void setTotal(int total) {
        this.total = total;
    }

    public List<RowsBean> getRows() {
        return rows;
    }

    public void setRows(List<RowsBean> rows) {
        this.rows = rows;
    }

    public static class RowsBean implements Serializable{
        /**
         * id : 2F49D1DD197445F088549069F8BAA7C8
         * internalId : 60
         * objectType : positiveInfo
         * objectTypeName : 刑满释放人员
         * occurDate : 2017-11-11T00:00:00
         * occurPlace : 德令哈哟123
         * organization : {"id":"DA7D2D8986FF4729B0DBC2DD257E436C","orgName":"全国"}
         * recordType : 1
         * serviceContent : asd强吻强吻的是范德萨废物qwe
         * serviceJoiners : 邓艾
         * serviceMembers : 韩德强
         * serviceObjects : 张三
         * teamId : 89EA01729BEF45958D22E607DE82861A
         * teamName : tttttttt
         */

        private String id;
        private int internalId;
        private String objectType;
        private String objectTypeName;
        private String occurDate;
        private String occurPlace;
        private OrganizationBean organization;
        private int recordType;
        private String serviceContent;
        private String serviceJoiners;
        private String serviceMembers;
        private String serviceObjects;
        private String teamId;
        private String teamName;
        private String suffixType;


        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getObjectType() {
            return objectType;
        }

        public void setObjectType(String objectType) {
            this.objectType = objectType;
        }

        public String getObjectTypeName() {
            return objectTypeName;
        }

        public void setObjectTypeName(String objectTypeName) {
            this.objectTypeName = objectTypeName;
        }

        public int getInternalId() {
            return internalId;
        }

        public void setInternalId(int internalId) {
            this.internalId = internalId;
        }

        public String getOccurDate() {
            return occurDate;
        }

        public void setOccurDate(String occurDate) {
            this.occurDate = occurDate;
        }

        public String getOccurPlace() {
            return occurPlace;
        }

        public void setOccurPlace(String occurPlace) {
            this.occurPlace = occurPlace;
        }

        public OrganizationBean getOrganization() {
            return organization;
        }

        public void setOrganization(OrganizationBean organization) {
            this.organization = organization;
        }

        public int getRecordType() {
            return recordType;
        }

        public void setRecordType(int recordType) {
            this.recordType = recordType;
        }

        public String getServiceContent() {
            return serviceContent;
        }

        public void setServiceContent(String serviceContent) {
            this.serviceContent = serviceContent;
        }

        public String getServiceJoiners() {
            return serviceJoiners;
        }

        public void setServiceJoiners(String serviceJoiners) {
            this.serviceJoiners = serviceJoiners;
        }

        public String getServiceMembers() {
            return serviceMembers;
        }

        public void setServiceMembers(String serviceMembers) {
            this.serviceMembers = serviceMembers;
        }

        public String getServiceObjects() {
            return serviceObjects;
        }

        public void setServiceObjects(String serviceObjects) {
            this.serviceObjects = serviceObjects;
        }

        public String getTeamId() {
            return teamId;
        }

        public void setTeamId(String teamId) {
            this.teamId = teamId;
        }

        public String getTeamName() {
            return teamName;
        }

        public void setTeamName(String teamName) {
            this.teamName = teamName;
        }

        public String getSuffixType() {
            return suffixType;
        }

        public void setSuffixType(String suffixType) {
            this.suffixType = suffixType;
        }

        public static class OrganizationBean {
            /**
             * id : DA7D2D8986FF4729B0DBC2DD257E436C
             * orgName : 全国
             */

            private String id;
            private String orgName;

            public String getId() {
                return id;
            }

            public void setId(String id) {
                this.id = id;
            }

            public String getOrgName() {
                return orgName;
            }

            public void setOrgName(String orgName) {
                this.orgName = orgName;
            }
        }
    }

    public static class PermissionBean{
        //服务记录操作权限（不用筛选至网格级 目前没有 删除 修改操作）
        private boolean addServiceRecord;
        private boolean deleteServiceRecord;
        private boolean updateServiceRecord;
        public boolean isAddServiceRecord() {
            return addServiceRecord;
        }
        public boolean isDeleteServiceRecord() {
            return deleteServiceRecord;
        }
        public boolean isUpdateServiceRecord() {
            return updateServiceRecord;
        }
    }
}
